<%-- 
    Document   : exam-details-action
    Created on : Feb 19, 2012, 4:24:38 PM
    Author     : PhucAn
--%>
<%@page import="dao.ExamDAO"%>
<%@page import="dto.Exam"%>
<%@page import="dto.Question"%>
<%@page import="java.util.ArrayList"%>
<%@page import="dao.QuestionSetDAO"%>
<%@page import="util.SharingUtil"%>
<%
    QuestionSetDAO daoQS = new QuestionSetDAO();
    
    String strExam = request.getParameter("exid");
    if (strExam != null) {
        ExamDAO daoExam = new ExamDAO();
        int examId = Integer.parseInt(strExam);
        ArrayList<Question> list = daoQS.getQuestions(examId);
        Exam exam = daoExam.getExam(examId);
        request.setAttribute("exam", exam);
        request.setAttribute("list", list);
    }
%>